﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TomNet.Data
{
    public class IdWorkerHelper
    {
        private static readonly Snowflake _idWorker = null;
        private IdWorkerHelper()
        {

        }

        static IdWorkerHelper()
        {
            _idWorker = new Snowflake(1, 1);
        }

        public static long GenId64()
        {
            return _idWorker.NextId();

        }
    }
}
